package apiv1

import (
	"gin-mvc/controllers"
	"gin-mvc/pkg/exceptions"
)

type TestController struct {
	controllers.BaseController
}

func (controller *TestController) Index() {
	data := make(map[string]interface{})
	data["list"] = []string{"a", "b"}
	data["method"] = controller.Ctx.Request.Method
	data["input"] = controller.Ctx.Query("a")
	controller.SendJson(exceptions.Success, data, "info")
}
